// Adresse.cpp : Implementation of CAdresse
#include "stdafx.h"
#include "EBASdll.h"
#include "Adresse.h"

/////////////////////////////////////////////////////////////////////////////
// CAdresse

STDMETHODIMP CAdresse::InterfaceSupportsErrorInfo(REFIID riid)
{
	static const IID* arr[] = 
	{
		&IID_IAdresse
	};
	for (int i=0; i < sizeof(arr) / sizeof(arr[0]); i++)
	{
		if (InlineIsEqualGUID(*arr[i],riid))
			return S_OK;
	}
	return S_FALSE;
}

STDMETHODIMP CAdresse::get_Gade(BSTR *pVal)
{
	*pVal = m_adresse->get_Gade().copy();

	return S_OK;
}

STDMETHODIMP CAdresse::put_Gade(BSTR newVal)
{
	m_adresse->put_Gade(newVal);

	return S_OK;
}

STDMETHODIMP CAdresse::get_Telefon(BSTR *pVal)
{
	*pVal = m_adresse->get_Telefon().copy();

	return S_OK;
}

STDMETHODIMP CAdresse::put_Telefon(BSTR newVal)
{
	m_adresse->put_Telefon(newVal);

	return S_OK;
}

STDMETHODIMP CAdresse::get_Telefax(BSTR *pVal)
{
	*pVal = m_adresse->get_Telefax().copy();

	return S_OK;
}

STDMETHODIMP CAdresse::put_Telefax(BSTR newVal)
{
	m_adresse->put_Telefax(newVal);

	return S_OK;
}

STDMETHODIMP CAdresse::get_Email(BSTR *pVal)
{
	*pVal = m_adresse->get_Email().copy();

	return S_OK;
}

STDMETHODIMP CAdresse::put_Email(BSTR newVal)
{
	m_adresse->put_Email(newVal);

	return S_OK;
}

STDMETHODIMP CAdresse::get_AdresseType(BSTR *pVal)
{
	*pVal = m_adresse->get_AdresseType().copy();

	return S_OK;
}

STDMETHODIMP CAdresse::put_AdresseType(BSTR newVal)
{
	m_adresse->put_AdresseType(newVal);

	return S_OK;
}

STDMETHODIMP CAdresse::get_GUID(BSTR *pVal)
{
	*pVal = m_adresse->get_GUID().copy();

	return S_OK;
}

STDMETHODIMP CAdresse::put_GUID(BSTR newVal)
{
	m_adresse->put_GUID(newVal);

	return S_OK;
}

STDMETHODIMP CAdresse::get_PostNummer(BSTR *pVal)
{
	*pVal = m_adresse->get_PostNr().copy();

	return S_OK;
}

STDMETHODIMP CAdresse::put_PostNummer(BSTR newVal)
{
	m_adresse->put_PostNr(newVal);

	return S_OK;
}

STDMETHODIMP CAdresse::get_By(BSTR *pVal)
{
	*pVal = m_adresse->get_By().copy();

	return S_OK;
}

STDMETHODIMP CAdresse::put_By(BSTR pVal)
{
	m_adresse->put_By(pVal);

	return S_OK;
}

STDMETHODIMP CAdresse::get_Attention(BSTR *pVal)
{
	*pVal = m_adresse->get_Attention().copy();

	return S_OK;
}

STDMETHODIMP CAdresse::put_Attention(BSTR newVal)
{
	m_adresse->put_Attention(newVal);

	return S_OK;
}
